import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    // 用户信息
    userInfo: ''
  },
  mutations: {
    // 修改用户信息
    EDITUSERINFO (state, data) {
      return (state.userInfo = data)
    }
  },
  getters: {},
  actions: {}
})
